import { Component } from '@angular/core';
import {NavController, ModalController} from 'ionic-angular';
import {AddContentPage} from "../../components/add-content/add-content";

/*
  Generated class for the MessageBoard page.

  See http://ionicframework.com/docs/v2/components/#navigation for more info on
  Ionic pages and navigation.
*/
@Component({
  selector: 'page-message-board',
  templateUrl: 'message-board.html'
})
export class MessageBoardPage {

  constructor(public navCtrl: NavController,
              public modalCtrl: ModalController) {}

  ionViewDidLoad() {
    console.log('Hello MessageBoardPage Page');
  }

  presentAddContent() {
    let modal = this.modalCtrl.create(AddContentPage, {
      disablePicture: true,
      title: 'Add Message'
    });
    modal.present();
  }

}
